colors={
    blue = {0,0,1,1},
    red = {1,0,0,1},
    green ={ 0,1,0,1},
    darkGrey={0.3,0.3,0.3,1},
    white={1,1,1,1},
    pink={1,192/255,203/255,1}
    }
font_a=love.graphics.newFont(80)
font_b=love.graphics.newFont(55)


function love.mousepressed(xp,yp,bp)
    if 150<y and y<250 and 100<x and x<300 and bp==1 then
        SwitchScence ("replacegreen")
    elseif 150<y and y<250 and 500<x and x<700 and bp==1 then
        SwitchScence ("replacepink")
    elseif 300<x and x<500 and 350<y and y<450 and bp==1 then
        SwitchScence ("replace")
    end
end

function love.draw()
    love.graphics.setColor(colors.pink)
    love.graphics.rectangle("fill",0,0,800,600)

    love.graphics.setFont(font_b)
    love.graphics.setColor(colors.darkGrey)
    love.graphics.print("change the color",150,50)

    x,y= love.mouse.getPosition()
    if 150<y and y<250 and ( (100<x and x<300) or (500<x and x<700)) then
        if 100<x and x<300 then
            love.graphics.setColor(colors.darkGrey)
            love.graphics.rectangle("fill",100,150,200,100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",500,150,200,100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",300,350,200,100)
        else
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",100,150,200,100)
            love.graphics.setColor(colors.darkGrey)
            love.graphics.rectangle("fill",500,150,200,100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",300,350,200,100)
        end
    elseif 300<x and x<500 and 350<y and y<450 then
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",100,150,200,100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",500,150,200,100)
            love.graphics.setColor(colors.darkGrey)
            love.graphics.rectangle("fill",300,350,200,100)
    else
        love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",100,150,200,100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",500,150,200,100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill",300,350,200,100)
    end
    love.graphics.setColor(colors.white)
    love.graphics.setFont(font_b)
    love.graphics.print("green",130,170)
    love.graphics.print("pink",550,170)
    love.graphics.print("return",320,370)
end